package org.charles.zhifou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.charles.zhifou.model.dto.question.QuestionContentDTO;
import org.charles.zhifou.model.entity.Question;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.List;

/**
* @author charles
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2024-08-06 09:11:36
*/
public interface QuestionService extends IService<Question> {

    Long saveQuestion(Question question);

    Boolean removeQuestionById(Long id);

    Boolean updateQuestion(Question question);

    Boolean editQuestion(Question question);

    List<QuestionContentDTO> aiGenerateQuestionsSync(Long appId, String userMessage);

    SseEmitter aiGenerateQuestionsAsync(Long appId, String userMessage);
}
